package struts2.hanh;

import java.util.ArrayList;
import com.opensymphony.xwork2.ActionSupport;
import DAO.Dao_Programme;
import Entity.Programme;

public class CheckboxAction extends ActionSupport{

	private static final long serialVersionUID = 1L;
	private boolean includeInActive;
	
	private ArrayList<Programme> prlist;	
	public String execute()
	{
		Dao_Programme cont = new Dao_Programme();
		 if(includeInActive){
			 prlist = cont.getProgram();
			 
		 }else{
			 prlist = cont.getDsActive();
		 }
		 return "success";
	}
	public boolean isIncludeInActive() {
		return includeInActive;
	}

	public void setIncludeInActive(boolean includeInActive) {
		this.includeInActive = includeInActive;
	}
	public ArrayList<Programme> getList() {
		return prlist;
	}
	public void setList(ArrayList<Programme> prlist) {
		this.prlist = prlist;
	}

	

	
}
